var e = require("../../utils/api.js"), a = (require("../../wxParse/wxParse.js"), 
getApp());

Page({
    data: {
        name: "",
        phone: "",
        wx: "",
        store: "",
        adr: "",
        region: [ "北京市", "北京市", "东城区" ],
        customItem: "全部",
        footer: [],
        carnum: wx.getStorageSync("cartnum")
    },
    onLoad: function(o) {
        var t = this;
        wx.setNavigationBarColor({
            frontColor: wx.getStorageSync("basic").topcolor,
            backgroundColor: wx.getStorageSync("basic").topbg
        }), e.getMember({
            openid: a.globalData.openid
        }).then(function(e) {
            console.log(e), 2 == e.data.m_is_head && wx.redirectTo({
                url: "/pages/groupCenter/index"
            });
        }), e.GetApplyHeadSet({
            openid: a.globalData.openid
        }).then(function(e) {
            console.log(e), 0 == e.errno && t.setData({
                apply_head_img: e.data.apply_head_img.value,
                next_data: e.data.apply_head_text.value
            });
        });
    },
    applytuan: function() {
        wx.navigateTo({
            url: "/pages/group/groupApplyInfo",
            success: function(e) {},
            fail: function(e) {},
            complete: function(e) {}
        });
    },
    toHome: function(e) {
        wx.reLaunch({
            url: "/pages/template/index"
        });
    }
});